package com.freight.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.freight.core.base.FreightBaseEntity;
import com.freight.core.common.constant.CommonConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author huyingtai
 */

@Data
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "user_driver_user")
@TableName("user_driver_user")
@ApiModel(value = "司机信息表")
public class DriverUser extends FreightBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "身份证Id")
    private Long idCardId;

    @ApiModelProperty(value = "行驶证Id --- 车辆id")
    private Long vehicleId;

    @ApiModelProperty(value = "驾驶证id")
    private Long driverId;

    @ApiModelProperty(value = "认证状态 0未认证 1已认证 2审核中")
    private Integer driverUserStatus = CommonConstant.REGIST;

}